Capacitance to code converter with sigma-delta modulator

ABSTRACT

Apparatuses and methods of converting a capacitance measured on a sense element to a digital value are described. One apparatus includes a modulator having a modulator capacitor, a sense element selectively coupled in a feedback loop of the modulator to operate as a switching capacitor. The apparatus also includes a first switch coupled between a voltage source and a first node of the switching capacitor and a second switch coupled between the first node of the switching capacitor and a first node of the modulator capacitor. The switching capacitor provides a charge current to the modulator capacitor via the second switch. The modulator measures a capacitance of the sense element and converts the measured capacitance to a digital code representing the capacitance.

RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No.14/832,529, filed on Aug. 21, 2015, which is a continuation of U.S.patent application Ser. No. 13/917,528, filed on Jun. 13, 2013, now U.S.Pat. No. 9,166,621, Issued on Oct. 20, 2015, which is a continuation ofU.S. patent application Ser. No. 13/049,798, filed on Mar. 16, 2011, nowU.S. Pat. No. 9,154,160, issued on Oct. 6, 2015, which is a Continuationof U.S. patent application Ser. No. 11/600,255, filed on Nov. 14, 2006,now U.S. Pat. No. 8,547,114, issued on Oct. 1, 2013, all of which areincorporated by reference herein in their entirety.

TECHNICAL FIELD

This invention relates to the field of user interface devices and, inparticular, to capacitive touch-sensor devices.

BACKGROUND

Computing devices, such as notebook computers, personal data assistants(PDAs), and mobile handsets, have user interface devices, which are alsoknown as human interface device (HID). One user interface device thathas become more common is a touch-sensor pad. A basic notebooktouch-sensor pad emulates the function of a personal computer (PC)mouse. A touch-sensor pad is typically embedded into a PC notebook forbuilt-in portability. A touch-sensor pad replicates mouse x/y movementby using two defined axes which contain a collection of sensor elementsthat detect the position of a conductive object, such as a finger. Mouseright/left button clicks can be replicated by two mechanical buttons,located in the vicinity of the touchpad, or by tapping commands on thetouch-sensor pad itself. The touch-sensor pad provides a user interfacedevice for performing such functions as positioning a pointer, orselecting an item on a display. These touch-sensor pads may includemulti-dimensional sensor arrays for detecting movement in multiple axes.The sensor array may include a one-dimensional sensor array, detectingmovement in one axis. The sensor array may also be two dimensional,detecting movements in two axes.

Another user interface device that has become more common is a touchscreen. Touch screens, also known as touchscreens, touch panels, ortouchscreen panels are display overlays which are typically eitherpressure-sensitive (resistive), electrically-sensitive (capacitive),acoustically-sensitive (SAW—surface acoustic wave) or photo-sensitive(infra-red). The effect of such overlays allows a display to be used asan input device, removing the keyboard and/or the mouse as the primaryinput device for interacting with the display's content. Such displayscan be attached to computers or, as terminals, to networks. There are anumber of types of touch screen technology, such as optical imaging,resistive, surface wave, capacitive, infrared, dispersive signal, andstrain gauge technologies. Touch screens have become familiar in retailsettings, on point of sale systems, on ATMs, on mobile handsets, on gameconsoles, and on PDAs where a stylus is sometimes used to manipulate thegraphical user interface (GUI) and to enter data.

FIG. 1A illustrates a conventional touch-sensor pad. The touch-sensorpad 100 includes a sensing surface 101 on which a conductive object maybe used to position a pointer in the x- and y-axes, or to select an itemon a display. Touch-sensor pad 100 may also include two buttons, leftand right buttons 102 and 103, respectively. These buttons are typicallymechanical buttons, and operate much like a left and right button on amouse. These buttons permit a user to select items on a display or sendother commands to the computing device.

FIG. 1B illustrates a conventional linear touch-sensor slider. Thelinear touch-sensor slider 110 includes a surface area 111 on which aconductive object may be used to position a pointer in the x-axes (oralternatively in the y-axes). The construct of touch-sensor slider 110may be the same as that of touch-sensor pad 100. Touch-sensor slider 110may include a one-dimensional sensor array. The slider structure mayinclude one or more sensor elements that may be conductive traces. Eachtrace may be connected between a conductive line and a ground. By beingin contact or in proximity on a particular portion of the sliderstructure, the capacitance between the conductive lines and groundvaries and can be detected. The capacitance variation may be sent as asignal on the conductive line to a processing device. For example, bydetecting the capacitance variation of each sensor element, the positionof the changing capacitance can be pinpointed. In other words, it can bedetermined which sensor element has detected the presence of theconductive object, and it can also be determined the motion and/or theposition of the conductive object over multiple sensor elements.

One difference between touch-sensor sliders and touch-sensor pads may behow the signals are processed after detecting the conductive objects.Another difference is that the touch-sensor slider is not necessarilyused to convey absolute positional information of a conducting object(e.g., to emulate a mouse in controlling pointer positioning on adisplay) but, rather, may be used to actuate one or more functionsassociated with the sensing elements of the sensing device.

FIG. 1C illustrates a conventional sensing device having threetouch-sensor buttons. Conventional sensing device 120 includes button121, button 122, and button 123. These buttons may be capacitivetouch-sensor buttons. These three buttons may be used for user inputusing a conductive object, such as a finger.

In general, capacitive touch sensors are intended to replace mechanicalbuttons, knobs, and other similar mechanical user interface controls.Capacitive sensor allows eliminating the complicated mechanical switchesand buttons, providing the reliable operation under harsh conditions.Also, capacitive sensors are widely used in the modern customerapplications, providing new user interface options in the exitingproducts.

Many conventional methods exist for capacitance sensing or measuring.Some conventional methods have been briefly described below.

FIG. 1D illustrates a conventional relaxation oscillator for capacitancemeasurement. The relaxation oscillator 150 is formed by the capacitanceto be measured on capacitor 151, a charging current source 152, acomparator 153, and a reset switch 154. It should be noted thatcapacitor 151 is representative of the capacitance measured on a sensorelement of a sensor array. The relaxation oscillator is coupled to drivea charging current (Ic) 157 in a single direction onto sensing capacitorCx, capacitor 151.

FIG. 1E illustrates a variant of the conventional relaxation oscillatorof FIG. 1D. In this case, the dedicated reset switch is not used.Relaxation oscillator 160 includes a hysteresis comparator 153, andinverter 161. Comparator 153 operates as similar to the comparatordescribe above. The inverter 161 is configured to control the switches162, which are configured to charge and discharge of the sensor element(e.g., capacitor 151).

Using either conventional relaxation oscillators described above, thecapacitance change causes the output frequency variation, which can beeasily detected, such as using a digital counter. The disadvantage ofusing these conventional relaxation oscillators is that they operate ata fixed frequency and include high-impedance signal paths (for example,current source that charges small sensing capacitor Cx.

FIG. 1F illustrates another conventional method for measuringcapacitance is by phase shift measurement. The circuit 170 includes avoltage source, resistor, and phase shift meter, which are coupled tothe capacitance sensor element. The changing of the capacitance on thesensor element varies the phase shift between a reference signal and ameasured signal. The output of the phase shift meter can be converted toa code. Driving the capacitance through a fixed-value resistor yieldsvoltage and current waveforms that are out of phase by a predictableamount. The drive frequency can be adjusted to keep the phasemeasurement in a readily measured range.

FIG. 1G illustrates another conventional capacitance measurement schemebased on charging the sensor capacitor from constant current source.Circuit 180 includes a comparator, a constant current source, and a timemeasurement circuit, such as a counter or a timer. In this conventionaldesign, the capacitor is charged from the constant current source, andthe time required for getting the demanded threshold voltage is measuredby using the counter or timer. Another similar conventional capacitancesensing device based on charging the sensor capacitor from constantcurrent source charges and discharges the capacitor using the constantcurrent source. A description of this type of conventional design can befound in U.S. Pat. No. 5,294,889.

FIG. 1H illustrates a conventional capacitive voltage divider circuit190 for capacitance sensing. Capacitive voltage divider. Multipleimplementations are possible for the capacitive voltage divider circuit,but FIG. 1H illustrates only one of these implementations. The circuitincludes an AC source and two capacitors connected in series. In thiscase, the voltage on sensing capacitor is inversely proportional to thecapacitance. Also, illustrated in FIG. 1H, is a method for measuring thecapacitance on the capacitance voltage divider circuit using a peakdetector 191, as described in U.S. Pat. No. 5,572,205. The voltage canbe measured using the synchronous demodulator, peak detector, root meansquare (RMS) detector, or other suitable technique. FIG. 1H includes aconventional peak detector circuit 191 for measuring the voltage. Itshould be noted that in some implementations where a DC source is usedinstead AC source, the capacitors should be reset before DC voltageapplying using some switches.

Two other conventional capacitive measuring schemes are theresistor-capacitor charge timing, capacitive bridge divider. Theresistor-capacitor charge timing may include charging the capacitorthrough a fixed resistor and measuring timing on the voltage ramp. Smallcapacitor values may require very large resistors for reasonable timing.The capacitive bridge divider may include driving the capacitor undertest through a fixed reference capacitor. The reference capacitor andthe capacitor under test form a voltage divider. The voltage signal isrecovered with a synchronous demodulator, which may be done in aprocessing device.

Another class of methods for measuring capacitance on a sensor elementis switching capacitor methods. In these methods, the sensing capacitoris charged at one phase and is discharged to some charge receptiondevice at a second stage. A subclass of this class is chargeaccumulation. Methods of charge accumulation methods includetransferring charge accumulated on the sensing capacitor to thecharge-accumulation capacitor or integrator with capacitor in thefeedback loop. These methods may have a key advantage in thatcharge-accumulation circuits have low sensitivity for radio-frequency(RF) fields and noise because the sensing capacitor is charged from alow-impedance source and charge is transferred to a low-impedanceaccumulator (e.g., integrator capacitor or charge-accumulationcapacitor).

FIG. 1I illustrates a conventional charge-accumulation circuit 192. Theconventional charge-accumulation circuit 192 includes the sensingcircuit 194, the integration capacitor 195, switches 196 and 197, andthe voltage source 193. The conventional charge-accumulation circuit 192is described in U.S. Pat. No. 5,730,165. Switches SW₁ and SW₂ 196 areoperating in the non-overlapping way, providing series of sensingcapacitor Cx 194 cycles. Capacitance measurement is implemented in theseveral steps. First, the integration capacitor C_(int) 195 is reset inthe initial stage by using the some external switch Sw₃ 197. Next, theswitches Sw₁, Sw₂ 196 start to operate in two non-overlapping phases,providing charge-discharge cycles to the sensing capacitor Cx 194.Consequently, the integration capacitor C_(int) 195 voltage startsrising. The sensed capacitance value is determined by measuring numberof cycles, required for the voltage accumulated on the integrationcapacitor C_(int) 195 to a reference threshold voltage or by measuringthe voltage on the integration capacitor C_(int) 195 after a predefinednumber of charge transfer cycles. In the conventional method, thevoltage on the integration capacitor C_(int) 195 is represented by thefollowing Equation (1):

$\begin{matrix}{V_{Cint} = {V_{dd}\left( {1 - e^{{- N}\frac{C_{x}}{C_{int}}}} \right)}} & (1)\end{matrix}$where the term V_(Cint) is the voltage on the integration capacitorC_(int) 195, the term N is the cycle count, the term C_(x) is thesensing capacitance value, the term Cint is the integrator capacitorvalue, and the term V_(dd) is the power supply voltage.

FIG. 1J illustrates another conventional charge-accumulation circuit198, including an integrator. Charge-accumulation circuit 198 isdescribed in U.S. Pat. No. 6,323,846. The charge-accumulation circuit198 of FIG. 1J operates similarly to the charge-accumulation circuit 192of FIG. 1I; however, the integration capacitor voltage rises in thelinear way with respect to the number of cycles by placing theintegration capacitor in the feedback of an operational amplifier.

FIG. 1K illustrates another conventional charge-accumulation circuit199, including an integrating low-pass filter. Charge-accumulationcircuit 198 is described in U.S. Pat. No. 6,323,846. Thecharge-accumulation circuit 199 of 90

The charge-accumulation circuit 199 of FIG. 1K operates similarly to thecharge-accumulation circuit 192 of FIGS. 1I and 198 of FIG. 1J; however,the charge-accumulation circuit 199 operates as capacitance to thevoltage converter of the integrating low-pass filter output voltage thatis measured by an analog-to-digital (ADC). The conventionalcharge-accumulation circuit 199 of FIG. 1K requires an additional ADC,which increases the total system complexity and cost. Furthermore, theadditional ADC may introduce additional noise, such as quantizationnoise. Also, an additional operation amplifier is required for theintegrator that increases the total cost of implementation.

FIG. 1L illustrates another switching capacitor design, called thesuccessful approximation. Switches SW1 and SW2 and the capacitancesensor CX form a switched capacitor network with an equivalent circuitof a resistor to ground. With the iDAC set to a calibrated level, andSW1 and SW2 switching, the average voltage on CMOD settles at a levelthat varies with the value of capacitance on the capacitance sensorC_(X). Setting the iDAC to a low current level with SW2 open, thevoltage on CMOD ramps up. The time for the ramp voltage on CMOD to reachVREF is an indication of the value of Cx. The timer on the output of thecomparator converts the ramp time to a digital value. Self-calibrationof the system is accomplished through a successive approximation binarysearch to determine iDAC setting necessary to keep voltage on CMOD atVREF when no finger is present. Individual calibrated iDAC settings arestored for all sensors. When a finger is present, the voltage on CMODsettles at a lower voltage, requiring more time to reach the thresholdvoltage VREF, as shown in FIG. 1M. If (t2-t1) is long enough, the buttonstate is in finger present state, otherwise the button is in the fingerabsent state.

Other convention charge-accumulation circuits are described in U.S. Pat.Nos. 6,888,536, 6,288,707, 6,570,557, 6,535,200, 6,466,036, and6,452,514.

The conventional charge-accumulation circuits and methods describedabove operate in a cycle-based mode (e.g., FIGS. 1I and 1J), includingresetting, integrating, measuring. The cycle-based mode does not allowflexibility in changes to the conversion time. The cycle-based mode alsodoes not allow for tracking dynamic capacitance changes, which arecommon in game accessories, for example.

Most conventional charge accumulation methods have several stages thatare executed in series: reset, integrate, and measure. Therefore, inorder to track the faster capacitance changes, the conversion time canbe reduced by using smaller integration capacitor, which reduces theaccuracy as well. Also, the conventional charge accumulation methodscannot provide its output to different digital filters at the same time.

Another conventional charge accumulation design includes a sigma-deltamodulator for capacitance measurement, as described in U.S. Pat. No.6,970,126. This design is illustrated in FIG. 1N. This modulatorincludes the switching signal generator 59 that forms the phaseswitching signals. These signals are used for setting the sensingcapacitor drive switches 86 and 88 for setting levels Vh and V1 duringdifferent phases. The sensing capacitor c_sensor is placed between theexcitation source switches 86 and 88 and the modulator input switches 44and 46. The excitation source switches 86 and 88 and the modulator inputswitches 44 and 46 are controlled by the switching signal generator 59f. The output of the modulator is feedback to the voltage reference 30 fto control the polarity of the reference voltage applied to thereference capacitor Cref 24 f. The sensing capacitor c_sensor 90 f isnot in the feedback loop of the modulator. The sensing capacitor chargeis integrated using the differential integrator 20 and passed to thezero-cross detector comparator 12. The zero cross detector comparatorcontrols the reference capacitor switching using switches 32/34 andcontrolled reference voltage source Vref+. The modulator bitstream ispassed to the digital filter. The disadvantages of this conventionalsolution are that this design requires a dual electrode system withexcitation source, and the hardware complexity. The two-electrode systemrequires one wire for exciting the sensing capacitor (e.g., excitationbus) and one wire for sensing the capacitance (e.g., sense line). Thisdesign cannot work in a single wire configuration. Also, the full-scalerange of this conventional solution is set by using the referencecapacitor Cref value. This makes design less useful for applicationswhen the full scale should be changed dynamically during deviceoperation or large capacitance values need to be measured, taking intoaccount that capacitors require more die space during IC manufacturing.This design requires a multiphase clock source, multiple switches, adifferential integrator, a comparator, etc, which increase the hardwarecomplexity, as well as the die space and overall cost of the end design.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example, and not by wayof limitation, in the figures of the accompanying drawings.

FIG. 1A illustrates a conventional touch-sensor pad.

FIG. 1B illustrates a conventional linear touch-sensor slider.

FIG. 1C illustrates a conventional sensing device having threetouch-sensor buttons.

FIG. 1D illustrates a conventional relaxation oscillator for capacitancemeasurement.

FIG. 1E illustrates a variant of the conventional relaxation oscillatorof FIG. 1D.

FIG. 1F illustrates another conventional method for measuringcapacitance is by phase shift measurement.

FIG. 1G illustrates another conventional capacitance measurement schemebased on charging the sensor capacitor from constant current source.

FIG. 1H illustrates a conventional capacitive voltage divider circuit190 for capacitance sensing.

FIG. 1I illustrates a conventional charge-accumulation circuit.

FIG. 1J illustrates another conventional charge-accumulation circuit,including an integrator.

FIG. 1K illustrates another conventional charge-accumulation circuit,including an integrating low-pass filter.

FIG. 1L illustrates another switching capacitor design, called thesuccessful approximation.

FIG. 1M illustrates conventional successful approximation method tomeasure the capacitance

FIG. 1N illustrates a conventional solution with sigma-delta modulator

FIG. 2 illustrates a block diagram of one embodiment of an electronicsystem having a processing device for detecting a presence of aconductive object.

FIG. 3A illustrates a varying capacitance sensor element.

FIG. 3B illustrates one embodiment of a sensing device coupled to aprocessing device.

FIG. 4 illustrates a block diagram of one embodiment of an electronicdevice including a processing device that includes capacitance sensorwith a sigma-delta modulator for measuring the capacitance on a senorarray.

FIG. 5 illustrates a block diagram of one embodiment of a capacitancesensor including a sigma-delta modulator.

FIG. 6A illustrates a schematic of one embodiment of a circuit includinga sigma-delta modulator and a digital filter for measuring capacitanceon a sensor element.

FIG. 6B illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator and a digital filter for measuringcapacitance on a sensor element.

FIG. 6C illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator and a digital filter for measuringcapacitance on a sensor element.

FIG. 6D illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator and a digital filter for measuringcapacitance on a sensor element.

FIG. 7A illustrates a schematic of one embodiment of a circuit includinga sigma-delta modulator for measuring capacitance on a sensor element.

FIG. 7B illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator for measuring capacitance on a sensorelement.

FIG. 7C illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator for measuring capacitance on a sensorelement.

FIG. 7D illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator and for measuring capacitance on asensor element.

FIG. 8A illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator, a clock generation circuit, and acounter-based digital filter for measuring capacitance on a sensorelement.

FIG. 8B illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator and a decimator-type digital filterfor measuring capacitance on a sensor element.

FIG. 9A illustrate cross-sectional and top-side views of one embodimentof a water drop on a sensing device including multiple sensor elementsand a shielding electrode.

FIG. 9B illustrates one embodiment of a switching circuit and switchingcapacitor coupled to a shielding electrode.

FIG. 10A illustrates one embodiment of a single layer, four-wire ITOtouch panel.

FIG. 10B illustrates another embodiment of a single layer, four-wire ITOtouch panel.

FIG. 10C illustrates various embodiments of upper switch placements ofthe switches of a one-dimensional touch panel.

FIG. 10D illustrates various embodiments of lower switch placements ofthe switches of a one-dimensional touch panel.

FIG. 10E illustrates two graphs of two embodiment of the transferfunction of the ITO touch panel of FIG. 10C.

FIG. 11 illustrates one embodiment of a two-dimensional, four-wireresistive touch panel.

FIG. 12A illustrates one embodiment of a matrix scanning device.

FIG. 12B illustrates another embodiment of a matrix scanning device.

DETAILED DESCRIPTION

Described herein is a method and apparatus converting a capacitancemeasured on a sensor element to a digital code. The followingdescription sets forth numerous specific details such as examples ofspecific systems, components, methods, and so forth, in order to providea good understanding of several embodiments of the present invention. Itwill be apparent to one skilled in the art, however, that at least someembodiments of the present invention may be practiced without thesespecific details. In other instances, well-known components or methodsare not described in detail or are presented in simple block diagramformat in order to avoid unnecessarily obscuring the present invention.Thus, the specific details set forth are merely exemplary. Particularimplementations may vary from these exemplary details and still becontemplated to be within the spirit and scope of the present invention.

Embodiments of a method and apparatus are described to convert acapacitance measured on a sensor element to a digital code. In oneembodiment, the method may include measuring a capacitance on a sensorelement of a sensing device using a sigma-delta modulator, andconverting the capacitance measured on the sensor element to a digitalcode. In one embodiment, the apparatus may include a switching capacitoras a sensor element of a sensing device, and a sigma-delta modulatorcoupled to the sensor element to convert a capacitance measured on thesensor element to a digital code. The switching capacitor is in afeedback loop of the sigma-delta modulator. The output of thesigma-delta modulator is used to control the switching operation of theswitching capacitor, instead of using an external switching signalgenerator, as done conventionally. Also, the switching capacitor isplace between the inputs of the sigma-delta modulator and ground,instead of between an excitation source and the inputs of thesigma-delta modulator, as done conventionally. The embodiments describedherein may use a one-wire configuration for exciting the sensingcapacitor and one wire for sensing the capacitance, instead of atwo-wire configuration as done conventionally in the configurationswhere both ends of the sensing capacitor are used. The proposedinvention uses the sigma-delta modulator with sensing capacitor,connected by one terminal to ground. Also, unlike the conventionalcapacitance sensing methods that utilize a sigma-delta modulator, theembodiments described herein do not include an operational amplifierwith feedback capacitors (e.g., integrator), and a separate comparator.In addition, the embodiments described herein do not include a separateterminal for excitation voltage supply, as done conventionally.

Most conventional charge accumulation methods have several stages thatare executed in series: reset, integrate, and measure. Therefore, inorder to track the faster capacitance changes, the conversion time canbe reduced by using smaller integration capacitor, which reduces theaccuracy as well. In the embodiments described herein, the delta-sigmamodulator operates continuously, permitting adjustments to theconversion time versus resolution. Also, the modulator bit stream datacan be passed to different digital filters at same time, one can trackthe fast capacitance changes at low resolution, second performhigh-precision absolute values measurement, which is not possible withthe conventional charge accumulation methods described above.

In one embodiment, the method includes measuring the capacitance on asensor element. This may include charging the capacitance on the sensorelement on a line coupled to one end of the switching capacitor,measuring the capacitance using the same line that is coupled to the oneend of the switching capacitor. In one embodiment, the switchingcapacitor is switched in and out of the feedback loop of the sigma-deltamodulator using a switching circuit. The switching circuit may becontrolled by the output of the sigma-delta modulator. Alternatively,the switching circuit may be controlled by a clock source, such as aspread spectrum clock source, in conjunction with the output of thesigma-delta modulator.

FIG. 2 illustrates a block diagram of one embodiment of an electronicsystem having a processing device for detecting a presence of aconductive object. Electronic system 200 includes processing device 210,touch-sensor pad 220, touch-sensor slider 230, touch-sensor buttons 240,host processor 250, embedded controller 260, and non-capacitance sensorelements 270. The processing device 210 may include analog and/ordigital general purpose input/output (“GPIO”) ports 207. GPIO ports 207may be programmable. GPIO ports 207 may be coupled to a ProgrammableInterconnect and Logic (“PIL”), which acts as an interconnect betweenGPIO ports 207 and a digital block array of the processing device 210(not illustrated). The digital block array may be configured toimplement a variety of digital logic circuits (e.g., DAC, digitalfilters, digital control systems, etc.) using, in one embodiment,configurable user modules (“UMs”). The digital block array may becoupled to a system bus. Processing device 210 may also include memory,such as random access memory (RAM) 205 and program flash 204. RAM 205may be static RAM (SRAM), and program flash 204 may be a non-volatilestorage, which may be used to store firmware (e.g., control algorithmsexecutable by processing core 202 to implement operations describedherein). Processing device 210 may also include a memory controller unit(MCU) 203 coupled to memory and the processing core 202.

The processing device 210 may also include an analog block array (notillustrated). The analog block array is also coupled to the system bus.Analog block array also may be configured to implement a variety ofanalog circuits (e.g., ADC, analog filters, etc.) using, in oneembodiment, configurable UMs. The analog block array may also be coupledto the GPIO 207.

As illustrated, capacitance sensor 201 may be integrated into processingdevice 210. Capacitance sensor 201 may include analog I/O for couplingto an external component, such as touch-sensor pad 220, touch-sensorslider 230, touch-sensor buttons 240, and/or other devices. Capacitancesensor 201 and processing device 202 are described in more detail below.

It should be noted that the embodiments described herein are not limitedto touch-sensor pads for notebook implementations, but can be used inother capacitive sensing implementations, for example, the sensingdevice may be a touch screen, a touch-sensor slider 230, or atouch-sensor button 240 (e.g., capacitance sensing button). It shouldalso be noted that the embodiments described herein may be implementedin other sensing technologies than capacitive sensing, such asresistive, optical imaging, surface wave, infrared, dispersive signal,and strain gauge technologies. Similarly, the operations describedherein are not limited to notebook pointer operations, but can includeother operations, such as lighting control (dimmer), volume control,graphic equalizer control, speed control, or other control operationsrequiring gradual or discrete adjustments. It should also be noted thatthese embodiments of capacitive sensing implementations may be used inconjunction with non-capacitive sensing elements, including but notlimited to pick buttons, sliders (ex. display brightness and contrast),scroll-wheels, multi-media control (ex. volume, track advance, etc)handwriting recognition and numeric keypad operation.

In one embodiment, the electronic system 200 includes a touch-sensor pad220 coupled to the processing device 210 via bus 221. Touch-sensor pad220 may include a multi-dimension sensor array. The multi-dimensionsensor array includes multiple sensor elements, organized as rows andcolumns. In another embodiment, the electronic system 200 includes atouch-sensor slider 230 coupled to the processing device 210 via bus231. Touch-sensor slider 230 may include a single-dimension sensorarray. The single-dimension sensor array includes multiple sensorelements, organized as rows, or alternatively, as columns. In anotherembodiment, the electronic system 200 includes a touch-sensor button 240coupled to the processing device 210 via bus 241. Touch-sensor button240 may include a single-dimension or multi-dimension sensor array. Thesingle- or multi-dimension sensor array includes multiple sensorelements. For a touch-sensor button, the sensor elements may be coupledtogether to detect a presence of a conductive object over the entiresurface of the sensing device. Alternatively, the touch-sensor button240 has a single sensor element to detect the presence of the conductiveobject. In one embodiment, the touch-sensor button 240 may be acapacitance sensor element. Capacitance sensor elements may be used asnon-contact sensor elements. These sensor elements, when protected by aninsulating layer, offer resistance to severe environments.

The electronic system 200 may include any combination of one or more ofthe touch-sensor pad 220, touch-sensor slider 230, and/or touch-sensorbutton 240. In another embodiment, the electronic system 200 may alsoinclude non-capacitance sensor elements 270 coupled to the processingdevice 210 via bus 271. The non-capacitance sensor elements 270 mayinclude buttons, light emitting diodes (LEDs), and other user interfacedevices, such as a mouse, a keyboard, or other functional keys that donot require capacitance sensing. In one embodiment, buses 271, 241, 231,and 221 may be a single bus. Alternatively, these buses may beconfigured into any combination of one or more separate buses.

The processing device may also provide value-added functionality such askeyboard control integration, LEDs, battery charger and general purposeI/O, as illustrated as non-capacitance sensor elements 270.Non-capacitance sensor elements 270 are coupled to the GPIO 207.

Processing device 210 may include internal oscillator/clocks 206 andcommunication block 208. The oscillator/clocks block 206 provides clocksignals to one or more of the components of processing device 210.Communication block 208 may be used to communicate with an externalcomponent, such as a host processor 250, via host interface (I/F) line251. Alternatively, processing block 210 may also be coupled to embeddedcontroller 260 to communicate with the external components, such as host250. Interfacing to the host 250 can be through various methods. In oneexemplary embodiment, interfacing with the host 250 may be done using astandard PS/2 interface to connect to an embedded controller 260, whichin turn sends data to the host 250 via low pin count (LPC) interface. Insome instances, it may be beneficial for the processing device 210 to doboth touch-sensor pad and keyboard control operations, thereby freeingup the embedded controller 260 for other housekeeping functions. Inanother exemplary embodiment, interfacing may be done using a universalserial bus (USB) interface directly coupled to the host 250 via hostinterface line 251. Alternatively, the processing device 210 maycommunicate to external components, such as the host 250 using industrystandard interfaces, such as USB, PS/2, inter-integrated circuit (I2C)bus, or system packet interfaces (SPI). The host 250 and/or embeddedcontroller 260 may be coupled to the processing device 210 with a ribbonor flex cable from an assembly, which houses the sensing device andprocessing device.

In one embodiment, the processing device 210 is configured tocommunicate with the embedded controller 260 or the host 250 to sendand/or receive data. The data may be a command or alternatively asignal. In an exemplary embodiment, the electronic system 200 mayoperate in both standard-mouse compatible and enhanced modes. Thestandard-mouse compatible mode utilizes the HID class drivers alreadybuilt into the Operating System (OS) software of host 250. These driversenable the processing device 210 and sensing device to operate as astandard pointer control user interface device, such as a two-buttonPS/2 mouse. The enhanced mode may enable additional features such asscrolling (reporting absolute position) or disabling the sensing device,such as when a mouse is plugged into the notebook. Alternatively, theprocessing device 210 may be configured to communicate with the embeddedcontroller 260 or the host 250, using non-OS drivers, such as dedicatedtouch-sensor pad drivers, or other drivers known by those of ordinaryskill in the art.

In one embodiment, the processing device 210 may operate to communicatedata (e.g., commands or signals) using hardware, software, and/orfirmware, and the data may be communicated directly to the processingdevice of the host 250, such as a host processor, or alternatively, maybe communicated to the host 250 via drivers of the host 250, such as OSdrivers, or other non-OS drivers. It should also be noted that the host250 may directly communicate with the processing device 210 via hostinterface 251.

In one embodiment, the data sent to the host 250 from the processingdevice 210 includes click, double-click, movement of the pointer,scroll-up, scroll-down, scroll-left, scroll-right, step Back, and stepForward. In another embodiment, the data sent to the host 250 includethe position or location of the conductive object on the sensing device.Alternatively, other user interface device commands may be communicatedto the host 250 from the processing device 210. These commands may bebased on gestures occurring on the sensing device that are recognized bythe processing device, such as tap, push, hop, and zigzag gestures.Alternatively, other commands may be recognized. Similarly, signals maybe sent that indicate the recognition of these operations.

In particular, a tap gesture, for example, may be when the finger (e.g.,conductive object) is on the sensing device for less than a thresholdtime. If the time the finger is placed on the touchpad is greater thanthe threshold time it may be considered to be a movement of the pointer,in the x- or y-axes. Scroll-up, scroll-down, scroll-left, andscroll-right, step back, and step-forward may be detected when theabsolute position of the conductive object is within a pre-defined area,and movement of the conductive object is detected.

Processing device 210 may reside on a common carrier substrate such as,for example, an integrated circuit (IC) die substrate, a multi-chipmodule substrate, or the like. Alternatively, the components ofprocessing device 210 may be one or more separate integrated circuitsand/or discrete components. In one exemplary embodiment, processingdevice 210 may be a Programmable System on a Chip (PSoC™) processingdevice, manufactured by Cypress Semiconductor Corporation, San Jose,Calif. Alternatively, processing device 210 may be one or more otherprocessing devices known by those of ordinary skill in the art, such asa microprocessor or central processing unit, a controller,special-purpose processor, digital signal processor (DSP), anapplication specific integrated circuit (ASIC), a field programmablegate array (FPGA), or the like. In an alternative embodiment, forexample, the processing device may be a network processor havingmultiple processors including a core unit and multiple microengines.Additionally, the processing device may include any combination ofgeneral-purpose processing device(s) and special-purpose processingdevice(s).

It should also be noted that the embodiments described herein are notlimited to having a configuration of a processing device coupled to ahost, but may include a system that measures the capacitance on thesensing device and sends the raw data to a host computer where it isanalyzed by an application. In effect, the processing that is done byprocessing device 210 may also be done in the host.

In one embodiment, the method and apparatus described herein may beimplemented in a fully self-contained touch-sensor pad, which outputsfully processed x/y movement and gesture data signals or data commandsto a host. In another embodiment, the method and apparatus may beimplemented in be a touch-sensor pad, which outputs x/y movement dataand also finger presence data to a host, and where the host processesthe received data to detect gestures. In another embodiment, the methodand apparatus may be implemented in a touch-sensor pad, which outputsraw capacitance data to a host, where the host processes the capacitancedata to compensate for quiescent and stray capacitance, and calculatesx/y movement and detects gestures by processing the capacitance data.Alternatively, the method and apparatus may be implemented in atouch-sensor pad, which outputs pre-processed capacitance data to ahost, where the touchpad processes the capacitance data to compensatefor quiescent and stray capacitance, and the host calculates x/ymovement and detects gestures from the pre-processed capacitance data.

In one embodiment, the electronic system that includes the embodimentsdescribed herein may be implemented in a conventional laptoptouch-sensor pad.

Alternatively, it may be implemented in a wired or wireless keyboardintegrating a touch-sensor pad, which is itself connected to a host. Insuch an implementation, the processing described above as beingperformed by the “host” may be performed in part or in whole by thekeyboard controller, which may then pass fully processed, pre-processedor unprocessed data to the system host. In another embodiment, theembodiments may be implemented in a mobile handset (e.g., cellular phoneor mobile phone) or other electronic devices where the touch-sensor padmay operate in one of two or more modes. For example, the touch-sensorpad may operate either as a touch-sensor pad for x/y positioning andgesture recognition, or as a keypad or other array of touch-sensorbuttons and/or sliders.

Capacitance sensor 201 may be integrated into the IC of the processingdevice 210, or alternatively, in a separate IC. Alternatively,descriptions of capacitance sensor 201 may be generated and compiled forincorporation into other integrated circuits. For example, behaviorallevel code describing capacitance sensor 201, or portions thereof, maybe generated using a hardware descriptive language, such as VHDL orVerilog, and stored to a machine-accessible medium (e.g., CD-ROM, harddisk, floppy disk, etc.). Furthermore, the behavioral level code can becompiled into register transfer level (“RTL”) code, a netlist, or even acircuit layout and stored to a machine-accessible medium. The behaviorallevel code, the RTL code, the netlist, and the circuit layout allrepresent various levels of abstraction to describe capacitance sensor201.

It should be noted that the components of electronic system 200 mayinclude all the components described above. Alternatively, electronicsystem 200 may include only some of the components described above.

In one embodiment, electronic system 200 may be used in a notebookcomputer. Alternatively, the electronic device may be used in otherapplications, such as a mobile handset, a personal data assistant (PDA),a keyboard, a television, a remote control, a monitor, a handheldmulti-media device, a handheld video player, a handheld gaming device,or a control panel.

In one embodiment, capacitance sensor 201 may be a capacitance-to-codeconverter with a sigma-delta modulator (CCSD). The CCSD may have anarray of capacitive touch sensor elements using a sigma-delta modulator,an analog multiplexer, digital counting functions, and high-levelsoftware routines to compensate for environmental and physical sensorelement variations. The sensor array may include combinations ofindependent sensor elements, sliding sensor elements (e.g., touch-sensorslider), and touch-sensor sensor element pads (e.g., touch pad)implemented as a pair of orthogonal sliding sensor elements. The CCSDmay include physical, electrical, and software components. The physicalcomponent may include the physical sensor element itself, typically apattern constructed on a printed circuit board (PCB) with an insulatingcover, a flexible membrane, or a transparent overlay. The electricalcomponent may include an oscillator or other means to convert a chargedcapacitance into a measured signal. The electrical component may alsoinclude a counter or timer to measure the oscillator output. Thesoftware component may include detection and compensation softwarealgorithms to convert the count value into a sensor element detectiondecision (also referred to as switch detection decision). For example,in the case of slider sensor elements or X-Y touch-sensor sensor elementpads, a calculation for finding position of the conductive object togreater resolution than the physical pitch of the sensor elements may beused.

FIG. 3A illustrates a varying capacitance sensor element. In its basicform, a capacitive sensor element 300 is a pair of adjacent plates 301and 302. There is a small edge-to-edge capacitance Cp, but the intent ofsensor element layout is to minimize the base capacitance Cp betweenthese plates. When a conductive object 303 (e.g., finger) is placed inproximity to the two plates 301 and 302, there is a capacitance betweenone electrode 301 and the conductive object 303 and a similarcapacitance between the conductive object 303 and the other electrode302. The capacitance between the electrodes when no conductive object303 is present is the base capacitance Cp. This may be stored as abaseline value. There is also a total capacitance (Cp+Cf) on the sensorelement 300 when the conductive object 303 is present on the sensorelement 300. The baseline capacitance value Cp may be subtracted fromthe total capacitance when the conductive object 303 is present todetermine the change in capacitance (e.g., capacitance variation Cf)when the conductive object 303 is present and when the conductive object303 is not present on the sensor element. The capacitance variation Cfmay include a capacitance caused by the capacitance with respect to afloating ground of a human body. The values introduced by the human bodymay range between approximately 100-300 pF. Effectively, the capacitancevariation Cf can be measured to determine whether a conductive object303 is present or not (e.g., sensor activation) on the sensor element300. Capacitive sensor element 300 may be used in a capacitance sensorarray. The capacitance sensor array is a set of capacitors where oneside of each is grounded to a system ground. Thus, the active capacitor(as represented in FIG. 3C as capacitor 351) has only one accessibleside. The presence of the conductive object 303 increases thecapacitance (Cp+Cf) of the sensor element 300. Determining sensorelement activation is then a matter of measuring change in thecapacitance (Cf) or capacitance variation. Sensor element 300 is alsoknown as a grounded variable capacitor. In one exemplary embodiment, Cpmay range from approximately 10-300 picofarads (pF), and Cf may beapproximately 0.5% of Cp. Alternatively, Cf may be orders of magnitudesmaller than Cp. Alternatively, other ranges and values, such as Cf mayrange between 0.1 to 30 pF, may be used.

In another embodiment, capacitance sensor element is able to operatewithout surrounding ground plane because human has own relatively largecapacitance that can be considered connected between sensing electrodeand some internal net that has fixed potential.

The conductive object 303 in this embodiment has been illustrated as afinger. Alternatively, this technique may be applied to any conductiveobject, for example, a conductive door switch, position sensor, orconductive pen in a stylus tracking system (e.g., stylus).

FIG. 3B illustrates one embodiment of a capacitive sensor element 307coupled to a processing device 210. Capacitive sensor element 307illustrates the capacitance as seen by the processing device 210 on thecapacitance sensing pin 306. As described above, when a conductiveobject 303 (e.g., finger) is placed in proximity to one of the metalplates 305, there is a capacitance, Cf, between the metal plate and theconductive object 303 with respect to ground. This ground, however, maybe a floating ground. Also, there is a capacitance, Cp, between the twometal plates, with one of the metal plates being ground to a systemground. The ground plate may be coupled to the processing device 210using GPIO pin 308. In one embodiment, the ground plate may be anadjacent sensor element. Alternatively, the ground plate may be othergrounding mechanisms, such as a surrounding ground plane. Accordingly,the processing device 210 can measure the change in capacitance,capacitance variation Cf, as the conductive object is in proximity tothe metal plate 305. Above and below the metal plate that is closest tothe conductive object 303 is dielectric material 304. The dielectricmaterial 304 above the metal plate 305 can be the overlay, as describedin more detail below. The overlay may be non-conductive material used toprotect the circuitry from environmental conditions and to insulate theuser's finger (e.g., conductive object) from the circuitry. Capacitancesensor element 307 may be a sensor element of a touch-sensor pad, atouch-sensor slider, or a touch-sensor button.

FIG. 4 illustrates a block diagram of one embodiment of an electronicdevice 400 including a processing device that includes capacitancesensor 201 with a sigma-delta modulator for measuring the capacitance ona senor array 410. The electronic device 400 of FIG. 4 includes a sensorarray 410 (also known as a switch array), processing device 210, andhost 250. Sensor array 410 includes sensor elements 355(1)-355(N), whereN is a positive integer value that represents the number of rows (oralternatively columns) of the sensor array 410. Each sensor element isrepresented as a capacitor, as described above with respect to FIG. 3B.The sensor array 410 is coupled to processing device 210 via an analogbus 401 having multiple pins 401(1)-401(N). In one embodiment, thesensor array 410 may be a single-dimension sensor array including thesensor elements 355(1)-355(N), where N is a positive integer value thatrepresents the number of sensor elements of the single-dimension sensorarray. The single-dimension sensor array 410 provides output data to theanalog bus 401 of the processing device 210 (e.g., via lines 231).Alternatively, the sensor array 410 may be a multi-dimension sensorarray including the sensor elements 355(1)-355(N), where N is a positiveinteger value that represents the number of sensor elements of themulti-dimension sensor array. The multi-dimension sensor array 410provides output data to the analog bus 401 of the processing device 210(e.g., via bus 221).

In one embodiment, the capacitance sensor 201 includes a selectioncircuit (not illustrated). The selection circuit is coupled to thesensor elements 355(1)-355(N) and the sigma-delta modulator of thecapacitance sensor 201. Selection circuit may be used to allow thesigma-delta modulator to measure capacitance on multiple sensor elements(e.g., rows or columns). The selection circuit may be configured tosequentially select a sensor element of the multiple sensor elements toprovide the charge current and to measure the capacitance of each sensorelement. In one exemplary embodiment, the selection circuit is amultiplexer array. Alternatively, selection circuit may be othercircuitry inside or outside the capacitance sensor 201 to select thesensor element to be measured. In another embodiment, the capacitancesensor 201 may include one sigma-delta modulator for measuringcapacitance on all of the sensor elements of the sensor array.Alternatively, capacitance sensor 201 may include multiple sigma-deltamodulator to measure capacitance on the sensor elements of the sensorarray, for example, one sigma-delta modulator per sensor array. Themultiplexer array may also be used to ground the sensor elements thatare not being measured. This may be done in conjunction with a dedicatedpin in the GP10 port 207.

In another embodiment, the capacitance sensor 201 may be configured tosimultaneously scan the sensor elements, as opposed to being configuredto sequentially scan the sensor elements as described above. Forexample, the sensing device may include a sensor array having multiplerows and columns. The rows may be scanned simultaneously, and thecolumns may be scanned simultaneously.

In one exemplary embodiment, the voltages on all of the rows of thesensor array are simultaneously moved, while the voltages of the columnsare held at a constant voltage, with the complete set of sampled pointssimultaneously giving a profile of the conductive object in a firstdimension. Next, the voltages on all of the rows are held at a constantvoltage, while the voltages on all the rows are simultaneously moved, toobtain a complete set of sampled points simultaneously giving a profileof the conductive object in the other dimension.

In another exemplary embodiment, the voltages on all of the rows of thesensor array are simultaneously moved in a positive direction, while thevoltages of the columns are moved in a negative direction. Next, thevoltages on all of the rows of the sensor array are simultaneously movedin a negative direction, while the voltages of the columns are moved ina positive direction. This technique doubles the effect of anytranscapacitance between the two dimensions, or conversely, halves theeffect of any parasitic capacitance to the ground. In both methods, thecapacitive information from the sensing process provides a profile ofthe presence of the conductive object to the sensing device in eachdimension. Alternatively, other methods for scanning known by those ofordinary skill in the art may be used to scan the sensing device.

In one embodiment, the processing device 210 further includes a decisionlogic block 402. The operations of decision logic block 402 may beimplemented in firmware; alternatively, it may be implemented inhardware or software. The decision logic block 402 may be configured toreceive the digital code or counts from the capacitance sensor 201, andto determine the state of the sensor array 410, such as whether aconductive object is detected on the sensor array, where the conductiveobject was detected on the sensor array (e.g., determining the X-,Y-coordinates of the presence of the conductive object), determiningabsolute or relative position of the conductive object, whether theconductive object is performing a pointer operation, whether a gesturehas been recognized on the sensor array 410 (e.g., click, double-click,movement of the pointer, scroll-up, scroll-down, scroll-left,scroll-right, step Back, step Forward, tap, push, hop, zigzag gestures,or the like), or the like.

In another embodiment, instead of performing the operations of thedecision logic 402 in the processing device 210, the processing device201 may send the raw data to the host 250, as described above. Host 250,as illustrated in FIG. 4, may include decision logic 451. The operationsof decision logic 451 may also be implemented in firmware, hardware,and/or software. Also, as described above, the host may includehigh-level APIs in applications 452 that perform routines on thereceived data, such as compensating for sensitivity differences, othercompensation algorithms, baseline update routines, start-up and/orinitialization routines, interpolations operations, scaling operations,or the like. The operations described with respect to the decision logic402 may be implemented in decision logic 451, applications 452, or inother hardware, software, and/or firmware external to the processingdevice 210.

In another embodiment, the processing device 210 may also include anon-capacitance sensing actions block 403. This block may be used toprocess and/or receive/transmit data to and from the host 250. Forexample, additional components may be implemented to operate with theprocessing device 210 along with the sensor array 410 (e.g., keyboard,keypad, mouse, trackball, LEDs, displays, or the like).

FIG. 5 illustrates a block diagram of one embodiment of a capacitancesensor 201 including a sigma-delta modulator 420. Capacitance sensor 201couples to sensor array 410 via analog bus 401, as previously described.Capacitance sensor 201 includes sigma-delta modulator 420, digitalfilter 430, switching circuit 450, and clock generation circuit 440. Aspreviously described, sensor array has one or more sensor elements(represented as capacitors) on which capacitance can be measured. Theswitching capacitor is also referred to as a sensing capacitor,variable-switch capacitor, or variable sensing capacitor. Thesigma-delta modulator 420 includes a modulator capacitor, which isconfigured to receive a transferred charge, accumulated on the switchingcapacitor (e.g., sensor element). Transferring charge, accumulated onthe switching capacitor to the modulator capacitor may provide anadvantage because modulator circuits have low sensitivity for RF fieldsand noise because the sensing capacitor is charged from a low-impedancesource and charge is transferred to a low-impedance modulator capacitor.

In one embodiment, the sigma-delta modulator 420 may also include acomparator. The output of the comparator may be configured to togglewhen the voltage on the modulator capacitor crosses a reference voltage.The reference voltage may be a pre-programmed value, and may beconfigured to be adjustable. In another embodiment, the sigma-deltamodulator 420 may also include a latch coupled to the output of thecomparator. The latch may be configured to latch the output of thecomparator based on a clock signal from the clock generation circuit440. In another embodiment, the sigma-delta modulator 420 may include asynchronized latch that operates to latch an output of the comparatorfor a length of time. The output of the comparator may be latched formeasuring or sampling the output signal of the comparator by the digitalfilter 430. The latch may be used to set the sigma-delta modulatorsample frequency. The sigma-delta modulator 420 may also includeadditional components as described below in the various embodiments.

Clock source circuit 440 is configured to provide the clock to theswitching circuit for the switching operation of the switchingcapacitor. The clock generation circuit 440 may also provide a clocksignal to the sigma-delta modulator 420 for latching the output of thecomparator. The clock circuit 440 may be configured to set a samplefrequency and/or an output bitstream frequency of the sigma-deltamodulator. The clock circuit 440 may include a clock source, such as anoscillator, or a pseudo-random signal (PRS) counter. The clock circuit440 may also include additional components as described below in thevarious embodiments. In one embodiment, to minimize noise, the samenumber of switching capacitor cycles can be implemented in eachconversion cycle. This may be achieved by using a single clock sourcefor the modulator and the switching capacitor circuit, without requiringany synchronization circuit.

The modulator output is single bit bit-stream, which can be filtered andconverted to the numerical values using a digital filter. The digitalfilter 430 is coupled to receive the output 421 of the sigma-deltamodulator 420. The digital filter 430 is configured to obtain desiredcharacteristics, such as resolution, sample rate, low-pass or high-passtype filtering, or the like. The output 421 may be a single bitbit-stream, which can be filtered and/or converted by the digital filter430 to numerical values, such as multi-bit values. In one embodiment,the digital filter is a single integrator (e.g., counter).Alternatively, other standard ADC digital filters can be used, forexample, SincN filter (where N is the order of the Sinc filter), or thelike.

When a finger or other type of conductive object is placed on or nearthe switch, the capacitance increases from C_(p) to C_(p)+C_(X) whichcause a change in the output 421. In one embodiment, the sigma-deltamodulator 420 operates as a capacitance-to-duty-cycle converter. As thecapacitance on the switching capacitor increase or decrease, theduty-cycle of the sigma-delta modulator subsequently changes. The dutycycle of the sigma-delta modulator 420 may be measured by the digitalfilter to provide a digital code 431.

FIG. 6A illustrates a schematic of one embodiment of a circuit 600including a sigma-delta modulator 420 and a digital filter 430 formeasuring capacitance on a sensor element 611. Circuit 600 includes aswitching circuit 450, clock source 440, sigma-delta modulator 420, anddigital filter 430 for measuring the capacitance on sensor element 611.Sensor element 611 may be a sensor element of sensor array 410, and isrepresented as a switching capacitor 611 in the modulator feedback loop.Alternatively, sensor element 611 may be a single element, such as atouch-sensor button. Switching circuit 450 includes two switches Sw₁ 651and Sw₂ 652. The switches Sw₁ 651 and Sw₂ 652 operate in two,non-overlapping phases (also known as break-before-make configuration).These switches together with sensing capacitor C_(x) 611 form theswitching capacitor equivalent resistor, which provides the modulatorcapacitor C_(mod) 623 of sigma-delta modulator 420 charge current (asillustrated in FIG. 6A) or discharge current (as illustrated in FIG. 6B)during one of the two phases.

The sigma-delta modulator 430 includes the comparator 621, latch 622,modulator capacitor Cmod 623, modulator feedback resistor 625, which mayalso be referred to as bias resistor 625, and voltage source 626. Theoutput of the comparator may be configured to toggle when the voltage onthe modulator capacitor 623 crosses a reference voltage 624. Thereference voltage 624 may be a pre-programmed value, and may beconfigured to be adjustable. The sigma-delta modulator 420 also includesa latch 622 coupled to the output of the comparator 621 to latch theoutput of the comparator 621 for a given amount of time, and provide asan output, output 421. The latch may be configured to latch the outputof the comparator based on a clock signal from the gate circuit 440(e.g., oscillator signal from the oscillator 641). In anotherembodiment, the sigma-delta modulator 420 may include a synchronizedlatch that operates to latch an output of the comparator for apre-determined length of time. The output of the comparator may belatched for measuring or sampling the output signal of the comparator621 by the digital filter 430.

Sigma-delta modulator 420 is configured to keep the voltage on themodulator capacitor 623 close to reference voltage Vref 624 byalternatively connecting the switching capacitor resistor (e.g.,switches Sw₁ 651 and Sw₂ 652 and sensing capacitor C_(x) 611) to themodulator capacitor 623. The output 421 of the sigma-delta modulator 420(e.g., output of latch 622) is feedback to the gate circuit 440, whichcontrols the timing of the switching operations of switches Sw₁ 651 andSw₂ 652 of switching circuit 450. For example, in this embodiment, theclock source circuit 440 includes an oscillator 641 and gate 642. Theoutput 421 of the sigma-delta modulator 420 is used with an oscillatorsignal to gate a control signal 643, which switches the switches Sw₁ 651and Sw₂ 652 in a non-overlapping manner (e.g., two, non-overlappingphases). The output 421 of the sigma-delta modulator 420 is also outputto digital filter 430, which filters and/or converts the output into thedigital code 431.

In one embodiment of the method of operation, at power on, the modulatorcapacitor 623 has zero voltage and switching capacitor resistor (formedby sensing capacitor Cx 611, and switches Sw₁ 651 and Sw₂ 652) isconnected between Vdd line 626 and modulator capacitor 623. Thisconnection allows the voltage on the modulator capacitor 623 to rise.When this voltage reaches the comparator reference voltage, V_(ref) 624,the comparator 621 toggles and gates the control signal 643 of theswitches Sw₁ 651 and Sw₂ 652, stopping the charge current. Because thecurrent via bias resistors R_(b) 625 continues to flow, the voltage onmodulator capacitor 623 starts dropping. When it drops below thereference voltage 624, the output of the comparator 621 switches again,enabling the modulator 623 to start charging. As previously mentioned,the latch 622 and the comparator 621 set sample frequency of thesigma-delta modulator 420.

The digital filter 430 is coupled to receive the output 421 of thesigma-delta modulator 420. The output 421 of the sigma-delta modulator420 may be a single bit bit-stream, which can be filtered and/orconverted to the numerical values using a digital filter 430. In oneembodiment, the digital filter 430 is a counter. In the otherembodiment, the standard Sinc digital filter can be used. Alternatively,other digital filters may be used for filtering and/or converting theoutput 421 of the sigma-delta modulator 420 to provide the digital code431. It should also be noted that the output 421 may be output to thedecision logic 402 or other components of the processing device 210, orto the decision logic 451 or other components of the host 250 to processthe bitstream output of the sigma-delta modulator 420.

Described below are the mathematical equations that represent theoperations of FIG. 6A. During a normal operation mode, the sigma-deltamodulator 420 keeps these currents equal in the average by keeping thevoltage on the modulator 623 equal to, or close to, the referencevoltage V_(ref) 624. The current of the bias resistor R_(b) 625 is:

$\begin{matrix}{I_{Rb} = \frac{V_{c\;{mod}}}{R_{b}}} & (2)\end{matrix}$The sensing capacitor C_(x) 611 in the switched-capacitor mode hasequivalent resistance:

$\begin{matrix}{R_{c} = \frac{1}{f_{s}C_{x}}} & (3)\end{matrix}$where f_(s) is the operation frequency of the switches (e.g., switchingcircuit 450). If the output 421 of the sigma-delta modulator 420 has aduty cycle of d_(mod), the average current of the switching capacitor611 can be expressed in the following equation (4):

$\begin{matrix}{I_{c} = {d_{mod}\frac{V_{dd} - V_{C\;{mod}}}{R_{c}}}} & (4)\end{matrix}$In the operation mode, I_(Rb)=I_(c), V_(Cmod)=V_(ref) or:

$\begin{matrix}{\frac{V_{ref}}{R_{b}} = {d_{mod}\frac{V_{dd} - V_{ref}}{R_{c}}}} & (5)\end{matrix}$or taking into account that the reference voltage 624 is part of supplyvoltage:

$\begin{matrix}{{V_{ref} = {k_{d}V_{dd}}};{k_{dd} = \frac{R_{1}}{R_{1} + R_{2}}}} & (6)\end{matrix}$The Equation (5) can be rewritten in the following form:

$\begin{matrix}{d_{mod} = {{\frac{R_{c}}{R_{b}}\frac{k_{d}}{1 - k_{d}}} = {\frac{1}{f_{s}R_{b}}\frac{k_{d}}{1 - k_{d}}\frac{1}{C_{x}}}}} & (7)\end{matrix}$

The Equation (7) determines the minimum sensing capacitance value, whichcan be measured with the proposed method at given parameters set:

$\begin{matrix}{{d_{mod} \leq 1},{{{or}\text{:}\mspace{25mu} C_{xmin}} = {\frac{1}{f_{s}R_{b}}\frac{k_{d}}{1 - k_{d}}}}} & (8)\end{matrix}$

The resolution of this method may be determined by the sigma-deltamodulator duty cycle measurement resolution, which is represented in thefollowing equations:

$\begin{matrix}\begin{matrix}{{{\Delta\; d_{mod}} = {\beta\frac{\Delta\; C_{x}}{C_{x}^{2}}}};} \\{\beta = {\frac{1}{f_{s}R_{b}}\frac{k_{d}}{1 - k_{d}}}}\end{matrix} & (9)\end{matrix}$or after rewriting relatively ΔC_(x), we obtain:

$\begin{matrix}{{\Delta\; C_{x}} = {\frac{1}{\beta}\Delta\; d_{mod}C_{x}^{2}}} & (10)\end{matrix}$

In one exemplary embodiment, the resistance of the bias resistor 625 is20K Ohms (R_(b)=20 k), the operation frequency of the switches is 12 MHz(f_(s)=12 MHz), the capacitance on the switching capacitor 611 is 15picofarads (C_(x)=15 pF), and the ratio between Vdd 626 and the voltagereference 624 is 0.25 (k_(d)=0.25), the duty cycle has a 12-bitresolution and the capacitance resolution is 0.036 pF.

In some embodiments of capacitive sensing applications, it may beimportant to get fast data measurements. For example, the modulator canoperate at sample frequency 10 MHz (period is 0.1 microseconds (us)),for the 12-bit resolution sample, and digital filter as single-typeintegrator/counter the measurement time is approximately 410 us (e.g.,2¹²*0.1 us=410 us). For faster measurement speeds at same resolutions,other types of digital filters may be used, for example, by using theSinc2 filter, the scanning time at the same resolution may be reducedapproximately 4 times. To do this the sensing method should havesuitable measurement speed. In one embodiment, a good measurement ratemay be accomplished by using a double integrator as the digital filter430.

FIG. 6B illustrates a schematic of another embodiment of a circuit 625including a sigma-delta modulator 420 and a digital filter 430 formeasuring capacitance on a sensor element 611. Circuit 625 is similar tothe circuit 600, as describe above, except the bias resistor 627 islocated between the V_(dd) voltage line 626 and the modulator capacitor623, instead of between ground and the modulator capacitor 623 (asillustrated in FIG. 6A). Even though this configuration includes a lowerswitch configuration, it can still have the same positive effect on thenoise immunity of the system.

FIG. 6C illustrates a schematic of another embodiment of a circuit 650including a sigma-delta modulator 420 and a digital filter 430 formeasuring capacitance on a sensor element 611. Circuit 650 is similar tothe circuit 600, as describe above, except the bias resistor 625 isswitched in and out by a third switch Sw₃ 628, which is controlled bythe output 421 of the sigma-delta modulator 420 via control line 629.Circuit 650 is also dissimilar to circuit 600 in that the clockgeneration 440 includes a clock source 644 (instead of gate 642) and theoscillator 641. In one embodiment, the clock source 644 is aconventional frequency divider or counter. For better noise immunity,the clock source 644 may be a spread-spectrum clock source, such as apseudo-random signal (PRS) source, which includes a PRS generator.Alternatively, other clock sources may be used, such as clock dithering,or the like. The oscillator 641 generates an oscillator signal andoutputs it to the PRS source 644, which generates control signal 643.The switches Sw₁ 651 and Sw₂ 652 of switching circuit 440 operate intwo, non-overlapping phases, as controlled by the control signal 643.Using the control signal 643, the switching circuit 440 operates toprovide a charge current to the switching capacitor 611 in one phase(e.g., activating switch Sw₁ 651), and to transfer charge from theswitching capacitor 611 in a second phase (e.g., activating switch Sw₂652). Using the control signal 629, the sigma-delta modulator 420operates to switch, in and out, the connection of bias resistor 625 tothe charge modulator capacitor 623 to discharge and charge the modulatorcapacitor 623. The circuits described with respect to FIG. 6C differfrom the embodiments described above in that they differ in operationalcapacitance range and resolution. In the embodiments of FIGS. 6A and 6B,the duty cycle is inversely proportional to the sensing capacitance andthe resolution is not constant. In contrast, the embodiments of FIG. 6Cand FIG. 6D include a duty cycle that is linearly proportional to thesensing capacitance and the resolution is constant. These embodimentsmay be used to keep the resolution constant in the operationalcapacitance range.

It should also be noted that the embodiments of FIGS. 6A and 6C use theupper switch placements, while the embodiments of FIGS. 6B and 6D uselower switch placements; however, their operations may be the same.

Described below are the mathematical equations that represent theoperations of FIG. 6C. The switching capacitor 611 has equivalentresistance accordingly to the Equation (11). The current via thisresistor is:I _(c) =C _(x) f _(s)(V _(dd) −V _(Cint))  (11)The averaged current via bias resistor R_(b) 625 is:

$\begin{matrix}{I_{Rb} = \frac{d_{mod}V_{Cint}}{R_{b}}} & (12)\end{matrix}$sigma-delta modulator 420 keeps these currents equal in the average bykeeping the voltage on the modulator capacitor 623 equal to, or closeto, the reference voltage V_(ref) 624. By I_(c)=I_(Rb) and taking intoaccount the equation (6) we can obtain:

$\begin{matrix}{d_{mod} = {C_{x}f_{s}{R_{b}\left( {\frac{1}{k_{d}} - 1} \right)}}} & (13)\end{matrix}$

The Equation (13) determines the maximum sensing capacitance value,which can be measured with the proposed method at given parameters set:d_(mod)≤1, or:

$\begin{matrix}{C_{xmax} = {\frac{k_{d}}{1 - k_{d}}\frac{1}{R_{b}f_{x}}}} & (14)\end{matrix}$

The resolution for this configuration can be evaluated by the followingEquation (15):

$\begin{matrix}{{\Delta\; C_{x}} = {\frac{k_{d}}{1 - k_{d}}\frac{1}{R_{b}f_{s}}\Delta\; d_{mod}}} & (15)\end{matrix}$

In one exemplary embodiment, by substituting the following values:k_(d)=0.25, Rb=1.6 k, f_(s)=12 MHz, the capacitance on switchingcapacitor 611 is measured with 12-bits resolution, the maximum sensingcapacitance value is equal to 17 pF (Cxmax=17 pF), and the resolution is0.005 pF.

The embodiment described with respect to FIG. 6C may include someadvantages. These advantages may include that the duty cycle of thesigma-delta modulator 420 is linearly proportional to the capacitance onthe sensor element 611, and that the sensitivity is constant regardlessthe capacitance value.

In one embodiment, the control signal 643 is from a spread source, suchas the PRS source 644, to provide some electromagnetic interference(EMI) immunity. EMI may be an electrical disturbance in a system due tonatural phenomena, low-frequency waves from electromechanical devices orhigh-frequency waves (RFI) from chips and other electronic devices.Alternatively, other spread-clock sources can be used, such asvoltage-controlled oscillators with an analog noise source, or the like.

FIG. 6D illustrates a schematic of another embodiment of a sigma-deltamodulator and a digital filter. Circuit 675 is similar to the circuit650, as describe above, except the bias resistor 627 is located betweenthe Vdd voltage line 626 and the modulator capacitor 623, instead ofbetween ground and the modulator capacitor 623 (as illustrated in FIG.6C). This embodiment is similar to the embodiment of FIG. 6C, however,the modulator capacitor in FIG. 6D is charged by the feedback resistorand discharged by the switching capacitor, while the modulator capacitorin FIG. 6C is charged from the switching capacitor and is discharged bythe feedback resistor.

In one embodiment, the bias resistor 625 or 627 and the modulatorcapacitor 623 are external components to the sigma-delta modulator 420,which resides in the processing device 210. This may allow modificationsto be made to these components without modifications to the processingdevice 210. In another embodiment, these components reside within thesigma-delta modulator 420 and the sigma-delta modulator 420 may resideexternal to the processing device 210. Alternatively, all componentsreside in the processing device 210. Similarly, in other embodiments,the components described herein may reside on a common carrier substratesuch as, for example, an integrated circuit (IC) die substrate, amulti-chip module substrate, or the like. Alternatively, the componentsof circuits of FIGS. 6A-6D may be one or more separate integratedcircuits and/or discrete components. In another embodiment, the voltagedivider 829, including the two resistors R1 and R2 are externalcomponents to the sigma-delta modulator 420, as illustrated in FIG. 8A.The voltage divider 829 is configured to divide the voltage on thevoltage source line 626 to provide as output, the reference voltage 624.In another embodiment, the reference voltage 624 may be provided by abandgap voltage 824. Alternatively, other circuits known by those ofordinary skill in the art may be used to supply the circuit with thereference voltage 624.

It should be noted that the reference voltage 624 of FIGS. 6A-6D isderived from a voltage divider using two resistors (e.g., R1 and R2) andthe voltage source on Vdd line 626. Alternatively, the reference voltage624 may be set using other methods known by those of ordinary skill inthe art, such as a separate voltage source, filtered PWM signal, or thelike.

It should be noted that FIGS. 6A-6D are simplified schematics, and theadditional components may be included in the circuits of FIGS. 6A-6D.Alternatively, the schematics may include only the componentsillustrated in FIGS. 6A-6D.

It should be noted that the bias resistor (e.g., bias resistor 625 or627 of FIGS. 6A and 6C, and FIGS. 6B and 6D, respectively) can bereplaced by a current source and a fixed reference voltage for thereference voltage 624 can be used. For example, the charging current maybe generated in a register programmable current output DAC (also knownas IDAC). Accordingly, the current source may be a current DAC or IDAC.The IDAC output current may be set by an 8-bit value provided by theprocessing device 210, such as from the processing core 202. The 8-bitvalue may be stored in a register or in memory. Alternatively, othertypes of current sources may be used. One advantage of using a currentsource may be that it can be programmable with a wide range of values,for example, the current source may be programmed in the firmware of theprocessing device 210. However, currents source may be unstable, and mayhave limited output impedance. One advantage of using resistors and thevoltage source is it may have less dependence on the power supplyvoltage change.

In other embodiments, one of the switches 651 or 652 can be replaced bya resistor. This however, may result in performance degradation, butallows the circuit to be implement on a processing device with limitedresources.

FIG. 7A illustrates a schematic of one embodiment of a circuit includinga sigma-delta modulator for measuring capacitance on a sensor element.Circuit 700 is similar to the circuit 600 with respect to the switchingcircuit and the sigma-delta modulator 420. However, the output of thesigma-delta modulator 420 is coupled to receive a clock signal to latch622 from a frequency divider 741 (also referred to as a prescaler),which divides an oscillator signal from oscillator 641. The output ofthe latch 622 is input into the enable input of a first flip-flop 742,which provides a control signal 629 to the switching circuit 450. Theoutput of the latch 622 is also input into one input of gate 744, whichalso receives on the other input a signal from the pulse width modulator(PWM) 745, which generates variable-length pulses to represent theamplitude of an analog input signal). The output of the gate is inputinto the enable input of a second flip-flop 743, which receives theclock signal from the frequency divider 741. The output of the secondflip-flop 743 includes the digital code 431,

FIG. 7B illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator for measuring capacitance on a sensorelement. Circuit 725 is similar to the circuit 700, as describe above,except a PRS source 644 is coupled between the oscillator 641 and thefirst flip-flop 742. As described above, the PRS source providesspread-spectrum operations.

FIG. 7C illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator and a decimator type digital filterfor measuring capacitance on a sensor element. Circuit 750 is similar tothe circuit 700, as describe above, except a decimator 746 is coupled tothe output of the latch 622 of the sigma-delta modulator 420, instead ofthe PWM 745, gate 744, and second flip-flop 743. The decimator 746 isconfigured to provide the digital code 431. In one embodiment, thefrequency divider 741 is a 1/8 frequency divider. Alternatively, othervalues may be used.

FIG. 7D illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator and a synchronizing and filter circuitfor measuring capacitance on a sensor element. Circuit 775 is similar tothe circuit 700 with respect to the switching circuit and thesigma-delta modulator 420. However, the output of the sigma-deltamodulator 420 is coupled to receive a clock signal to latch 622 from afrequency divider 741, which divides an oscillator signal fromoscillator 641. The output of the latch 622 is input to one input ofgate 744, which also receives on the other input the output of PWM 745,which receives the same clock signal from the frequency divider 741. Theoutput of the gate 744 is input as the enable input to the flip-flop742, which receives the input of the PWM 745. The output of theflip-flop 742 includes the digital code 431. In addition, thisembodiment includes a PRS source 644 is placed between the oscillator641 and the switching circuit 450 to provide the control signal 629,instead of the first flip-flop 742 of circuit 700 of FIG. 7A.

FIG. 8A illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator, a clock generation circuit, and acounter-based digital filter for measuring capacitance on a sensorelement. Circuit 800 includes the sigma-delta modulator 420, theswitching circuit 450, the sensor element 611, as described with respectto the embodiments above of FIGS. 6A-6D, and 7A-7D. However, the clockgeneration circuit 440 and the digital filter 430 include differentelements than the circuits described above.

The digital filter 430 includes the PWM 745, a gate 831, and counter832. The digital filter 430 may be a simple single integrator, based onthe counter 832 with enabled input. The gate receives, as inputs, theoutput of the sigma-delta modulator 420 (e.g., from latch 622) and theoutput of the PWM 745, and provides, as output, an enable signal for thecounter 832. The counter 832 is clocked by the clock signal receivedfrom the VC₁ 842 of the synchronizing circuit 440. The counter 832provides, as output, the digital code 643 to the decision logic, such asdecision logic 402 or 451.

FIG. 8B illustrates a schematic of another embodiment of a circuitincluding a sigma-delta modulator and a decimator-type digital filterfor measuring capacitance on a sensor element. The circuit 825 issimilar to the circuit 800, as describe above, except the digital filter430 includes a decimator 833. In one embodiment, the decimator 833 is ahardware decimator, second order Sinc type digital filter.Alternatively, other types of decimators may be used. Decimators areknown by those of ordinary skill in the art, and according, a detaileddescription regarding them has not been included. Alternatively, thedigital filter 430 may not include the gate 831 and PWM 745.

In the embodiments of FIGS. 8A and 8B, the clock generation circuit 440includes an internal main oscillator (IMO) 841, clock source 844, and afrequency divider 741 (also referred to as a prescaler). The output ofthe clock source 844 provides the control signal 629 to control theswitching operations of the switching circuit 450 (e.g., twonon-overlapping switches). Alternatively, the control signal may beprovided to the switching circuit 440 using other embodiments describedherein. The internal main oscillator (IMO) 841 forms all clock signals.The modulator latch signal comes from frequency divider 741 (alsoreferred to as a prescaler). The switches clock source may be builtaround a pseudo-random sequence (PRS) generator that is used forspread-spectrum operation.

Embodiments described herein may include one or more of the followingadvantages. The embodiments may include higher sensitivity and higherresolution than conventional capacitance measuring techniques (e.g.,relaxation oscillator), and better noise immunity than conventionaldesigns because the switching capacitor 611 is charged fromlow-impedance source (voltage source 626) at one phase, which outputimpedance is less than approximately 1K Ohm, and is discharged to thelow-impedance current recipient (e.g., modulator capacitor 623 is alarger value capacitor than the switching capacitor 611) at secondphase. The embodiments described herein may have the ability to operatewith thicker overlays than the conventional capacitance measuringtechniques (e.g., thicknesses greater than approximately 5 mm). Theembodiments described herein may have an improved EMI immunity thanconventional designs when a spread spectrum source is used for theswitching capacitor operation. The spread spectrum source allows thesystem to operate in a wide frequency range with the presence of noise,as compared to the fixed operation frequency systems of the conventionaldesigns that can easily be disturbed by noise when the noise frequencyis close to the operation frequency. The embodiments described hereinmay have low sensitivity to the sensing element resistance in series,which allows operations with high-resistive conductive materials (e.g.,larger than 100 Ω/square, for example ITO panels. For example, ITOpanels which have a larger sensing zone can be used because thesummarized resistance is less than 1K Ohms, as compared to a thin andlong ITO line that has a resistance about 30-100K Ohms, which makescapacitance sensing more difficult, especially when a high operationalfrequency is used. The embodiments described herein may also beexpandable to the linear position sensing through conductive materials(e.g., two-wire touch-sensor sliders, three-wire rotation wheeltouch-sensor slider, or a four-wire touch-sensor pad).

The embodiments of the method described herein may also includeadvantages over the conventional capacitance sensing methods, such asflexible configuration measurement resolution versus conversion time,flexible capacitance measurement resolution versus time, such as byproperly configuring the digital filter for “decimation” ratio; providescontinuous type operation. Another advantage may include filtering themodulator bitstream in the parallel by several digital filters, one canbe integration digital filter with long accumulation interval forhigh-resolution absolute values capacitance measurements, and a secondcan be digital filter for tracking fast capacitance change, for example.Due to the integration nature of operation of the sigma-delta modulator420, the sigma-delta modulator output bit-stream is passed to through alow-pass digital filter, which attenuates the noise during measurementphase, which may provide an additional advantage over conventionalmethods. In other embodiments that include spread-spectrum operations,even if only the counter-based clock source is used, the switchingsignal is modulated by sigma-delta modulator output, providing somespectrum spreading in the circuit of FIG. 6A. However, using the PRSsource as switches clock source (e.g., control signal 643) for thespread spectrum operation provides a circuit that is more robust toexternal noise signals.

In addition, the embodiments described herein may be configured so thatno precision external capacitors are used, and there may be no demandsfor the stable charge-accumulation capacitor to be resistant to thesharp temperature changes, as in the existing charge transfer methods.

In one embodiment, a threshold operation mode may be supported. Forexample, in the circuits 600 and 625 of FIGS. 6A and 6B, may beconfigured to set the reference voltage at a level (e.g., voltage on atwhich if sensing capacitance on the switching capacitor 611 is too low(e.g., the comparator input voltage is less than the reference voltageby a pre-determined value), the device can be put in a low-power orstandby mode, and a subsequent touch (e.g., presence of a conductiveobject) brings the device from the standby mode to normal operationmode. This mode may be configured to be used as an automatic devicewake-up operation, for example.

The embodiments described herein may be easy to manufacture on silicon(e.g., Easy to silicon implementations), for example, for the analogresources may be minimal (e.g., only one analog comparator with coupleresistors). Also, the additional components, such as the PRS (or otherspread spectrum sources), counters, decimators may be easy tomanufacture using modern silicon process. In one exemplary embodiment,the embodiments are implemented in one digital block and one analogblock of the (PSoC™) processing device, manufactured by CypressSemiconductor Corporation, San Jose, Calif. Also, by selecting theswitching frequency properly, good environmental factor compensation maybe possible, such as for humidity, water films, or the like). Forexample, the water influence can be reduced by using the higheroperation frequencies (12 MHz or more), where water dielectric constantis reduced.

The embodiments described herein may be implemented in variouscapacitance sensing applications, such as linear slider sensing, planesensing, key matrix switches implementation, and the like. Some of theseembodiments have been described in additional detail below. Theembodiments described herein may be implemented in a one-dimensionalposition sensing device, such as two-pin sliders, three-pin rotationwheel slider, keyboards by connection keys, level sensing devices (e.g.,water level sensing, etc), and other one-dimensional position sensingdevices. The embodiments described herein may also be implemented inmulti-dimensional position sensing devices, such as various touch-sensorpads, transparent touch screens, keyboards (e.g., personal computer (PC)keyboards, industrial controller keyboards, remotes, or the like), gameaccessories, or other multi-dimensional position sensing devices.Alternatively, the embodiments described herein may be implemented tomeasure capacitance on a single sensor element, such as a touch-sensorbutton.

The embodiments described herein may be with conductive materials ofposition sensing, such as ITO materials for both single andmulti-dimensional sensing devices. For example, the embodiments may beimplemented in a dual layer, matrix-scanning application, such asillustrate in FIG. 9. The dual layer ITO panel example consists ofnon-interlaced row and column sensing zones. The ITO panel may scan therows and columns in series (e.g., sequentially), or alternatively, inparallel (e.g., simultaneously). This design may have the followingadvantages over the oscillator-based methods: the capacitancemeasurements have no dependence on the resistor in series, which isimportant for scanning via high-resistance conductive materials. In theembodiments described herein, the transmitted charge amount betweencycles does not depend on the resistor in series if equilibrium state isreached within each cycle.

In one embodiment, the operational frequency of the switching circuitshould be selected in such as way as to provide complete row or columnline re-charge each switching cycle. For example, the operationfrequency can be selected to be less than 1 MHz, such as 300-400 kHz fora 50×50 mm panel with 10 mils connection and inter-segment tracks, madefrom 400 Ω/square ITO material. Alternatively, other higher receptivitymaterials can be used, which use lower operation frequency.

Described below are embodiments of applications that may be implementedusing the embodiments described above.

Some applications of capacitance sensing devices require the reliableoperation in the presence of the water films or drops on the sensingdevice. For example, various applications, such as household appliances,automotive applications, industrial application, need sensor elementsthat do not provide false triggering when the presence of water, ice,humidity, or the like exists and/or changes on the sensor elements. Inone embodiment, a separate shielding electrode can be used.

FIG. 9A illustrate cross-sectional and top-side views of one embodimentof a water drop on a sensing device including multiple sensor elementsand a shielding electrode. The sensing device 900 includes sensorelements 901 and a shielding electrode 902 on a printed circuit board903. The printed circuit board including an overlay 904, upon which awater drop 905 is disposed. The shielding electrode 902 may be locatedon the same layer of the sensor elements 901, or alternatively, on aseparate layer of the PCB 903. The shielding electrode 902 may surroundthe sensor elements 901, or alternatively, may be adjacent to the sensorelements 901

When a water drop or water film is present on the overlay of the sensingdevice, the coupling between the shielding electrode 902 and the sensorelements 901 is increased. For example, when water drops are locatedbetween shielding and sensing electrodes, the C_(p) is increased andmodulator current is reduced. The increase of coupling between thesensor elements and the shielding electrode may increase the raw countsmeasured by the processing device. This may result in false triggeringof button activation when no button has been pressed. In one embodiment,in response to the presence of water drops, the modulator referencevoltage is increased by an API in such way that the raw count increasecaused from the water drops can be corrected (e.g., calibrated to beclose to zero, or alternatively, slightly negative).

In this example shielding electrode plane covers button. As alternativeplacement example the shielding electrode can be located at the oppositePCB layer, including the plane under button. In one embodiment, a hatchpattern, as illustrated in FIG. 9A, may be used for the shieldingelectrode. In one embodiment, the fill ratio of the shielding electrodeto sensor element is approximately 30-40%. Alternatively, other patternsand ratios may be used.

In one embodiment, the shield electrode may be in a transparent touchpaddevice. This may be useful to block the noise influence of the LCD driveelectrodes and reduce the stray capacitance at the same time.

FIG. 9B illustrates one embodiment of a switching circuit and switchingcapacitor coupled to a shielding electrode. In this embodiment, the sameclock signal that is used to precharge the sensor element 901 issupplied to shielding electrode 902. Here the sensor capacitance C_(x)is the capacitance on the sensor element (e.g., switching capacitor) andthe parasitic capacitance C_(p) is between the shielding electrode 902and sensor element 901. The first and third switches Sw₁ and Sw₃ are onat on at phase 1, Phi₁ phase, and the second and fourth switches Sw₂ andSw₄ are on at phase 2, Phi₂. The C_(par) is discharged at Ph₁ phase andis charged at Ph₂ phase. The modulator current is algebraic sum of C_(x)and C_(par) currents, which is represented in the following equation:I _(mod) =I _(C) −I _(Cpar) =f _(s) C _(x)(V _(dd) −V _(Cmod))−f _(x) C_(par) V _(Cmod)  (16)

As seen from equation (16), the modulator current is reduced withcoupling increasing between electrodes, which allows separate signalsfrom water and conductive object 303 (e.g., finger). Water drops maydecrease the modulator current, and the finger touch may increase themodulator current. This may simplify the decision logic operation.

FIG. 10A illustrates one embodiment of a single layer, four-wire ITOtouch panel. The ITO touch panel 1000 includes solid ITO coating withthe electric filed linearization electrodes. It should be noted thatsome embodiments may not use the field linearization electrodes, andalternatively, the linearization may be in firmware of the processingdevice.

FIG. 10B illustrates another embodiment of a single layer, four-wire ITOtouch panel. The ITO touch panel 1010 includes multiple resistivesliders, connected in the parallel, that provide linear electric fieldgradient over the panel 1010. Similarly, this topology may not use thefield linearization electrodes, and the linearization may be done infirmware of the processing device.

FIG. 10C illustrates various embodiments of upper switch placements ofthe switches of a one-dimensional touch panel. The operation idea ischarging the resistive material to some voltage at Ph₁. At the Ph₂ oneedge of resistive material is connected to the ground or fixed voltagesource, the second edge is connected to the sigma-delta modulatorcapacitor. This connection forms the resistive network that provides themodulator filter capacitor current flow path. The current value dependson the touch capacitance and its position on slider.

To find the touch position regardless its capacitance, the slider endsare reversed and measurement cycle is repeated. These stages are calledStage 1 and Stage 2. In the Stage 1, the A edge of conductive materialis connected to the fixed potential net at Ph₂ operation cycle andcurrent is sensed from side B of conductive strip. In the Stage 2, the Bedge of conductive material is connected to the fixed voltage net andsignal from edge A is passed to the modulator filtering capacitor. Thetouch position can be found by doing relatively simple math calculationsas described below.

Capacitor C_(x) indicates the capacity of slider and capacity introducedby finger in the touch point. This discussion, however does not considerthe slider distributed parasitic capacitance and its influence on themeasurement results for math simplification. It should be noted that theinfluence of the parasitic capacitance should be constant overone-dimensional strip during measurement cycle.

At the Ph₁, the capacitor C_(x) is charged by fixed voltage V_(dd).Charge time should be enough for transient process finalization. At thePh₂ the C_(x) is discharged. Discharge time is limited by Ph₂ durationperiod, mark as t_(r). The sigma-delta modulator keeps the input voltageclose to V_(ref) and this voltage can be assumed constant duringoperation. Quantity of charge, passed through resistor R_(x) will beequal to integral of current passed through this resistor, asrepresented in the following equations:

$\begin{matrix}{i_{Rx} = \frac{{V_{Cx}(t)} - V_{ref}}{R_{x}}} & (17) \\{{\Delta\; Q} = {\int_{0}^{tr}{\frac{{V_{Cx}(t)} - V_{ref}}{R_{x}} \cdot {dt}}}} & (18)\end{matrix}$

The process of capacitor discharging is described by the following firstorder differential equation:

$\begin{matrix}{{V_{Cx}(t)} = {{\frac{R_{x} \cdot R_{x\; 1}}{R_{x} + R_{x\; 1}} \cdot C_{x} \cdot \frac{{dV}_{Cx}}{dt}} + {\frac{R_{x\; 1}}{R_{x} + R_{x\; 1}} \cdot V_{ref}}}} & (19)\end{matrix}$For the initial conditions: V_(Cx)(0)=V_(dd), V_(ref)=constant, thesolution of equation (19) will be:

$\begin{matrix}{{V_{Cx}(t)} = {{\frac{R_{x\; 1}}{R_{x} + R_{x\; 1}} \cdot V_{ref}} + {\left( {V_{dd} - {\frac{R_{x\; 1}}{R_{x} + R_{x\; 1}} \cdot V_{ref}}} \right) \cdot {\exp\left( {{- \frac{R_{x} + R_{x\; 1}}{R_{x} + R_{x\; 1}}} \cdot \frac{t_{r}}{C_{x}}} \right)}}}} & (20)\end{matrix}$The following equation includes the resistive divider on R_(x), R_(x1).We can simplify it by using the following substitutions:

$\begin{matrix}{{{R_{x\; 1} + R_{x}} = R};{K = \frac{R_{x\; 1}}{R}};{{1 - K} = \frac{R_{x}}{R}};{\frac{R}{R_{x} \cdot R_{x\; 1}} = \frac{1}{K \cdot \left( {1 - K} \right) \cdot R}}} & (21)\end{matrix}$Now, changing equation 21, taking into account equation 20 for resistivetap, the following equation is derived:

$\begin{matrix}{{V_{Cx}(t)} = {{K \cdot V_{ref}} + {\left( {V_{dd} - {K \cdot V_{ref}}} \right) \times {\exp\left( {{- \frac{1}{K \cdot \left( {1 - K} \right) \cdot R}} \cdot \frac{t}{C_{x}}} \right)}}}} & (22)\end{matrix}$

By substituting the equation 22 in equation 18 and integrating overcycle time t_(r) we can get the following equation for charge,transferred each switching cycle with duration t_(r):

$\begin{matrix}{{\Delta\; Q} = {{\frac{1}{R} \cdot V_{ref} \cdot t_{r}} + {{K \cdot C_{x} \cdot \left( {V_{dd} - {K \cdot V_{ref}}} \right)} \times \left( {{\exp\left\lbrack {{- \frac{1}{K \cdot \left( {1 - K} \right) \cdot R}} \cdot \frac{t_{r}}{C_{x}}} \right\rbrack} - 1} \right)}}} & (23)\end{matrix}$By dividing the equation (23) on Ph₂ duration time t_(r), one candetermine the current value via switching capacitor slider, asrepresented in the following equation:

$\begin{matrix}{I_{sw} = {{\frac{1}{R} \cdot V_{ref}} + {{\frac{K \cdot C_{x}}{t_{r}} \cdot \left( {V_{dd} - {K \cdot V_{ref}}} \right)} \times \left( {{\exp\left\lbrack {{- \frac{1}{K \cdot \left( {1 - K} \right) \cdot R}} \cdot \frac{t_{r}}{C_{x}}} \right\rbrack} - 1} \right)}}} & (24)\end{matrix}$This equation represents two components. One component covers theresistive strip DC current (left term, that is inversely proportional tothe R), and second component is caused by the presence of the conductiveobject (e.g., touch influence). The sigma-delta modulator converts theI_(sw) current in the duty cycle.

FIG. 10D illustrates various embodiments of lower switch placements ofthe switches of a one-dimensional touch panel. The operation of theseembodiments is similar to those described above with respect to theupper switch placements, and is apparent to one of ordinary skill in theart. Accordingly, additional details regarding their operation have notbeen included.

FIG. 10E illustrates two graphs of two embodiment of the transferfunction of the ITO touch panel of FIG. 10C. These embodiments includethe following exemplary values: C_(x)=10 pF, t_(r)=500 ns, V_(dd)=5V,R=300 Ohm. Alternatively, other values may be used. As noted in the twographs, the transfer function becomes more linear when reference voltageis lowered. For example, in the left graph the reference voltage is 1.3V and the right graph the reference voltage is 0.05 volts, and theresulting transfer function of the graph on the right is more linearthan the transfer function on the left graph. Also, by lowering thereference voltage V_(ref), the resistive material current component isreduced. In one embodiment, the configuration includes connecting thesecond end of resistive strip to net with same potential as themodulator reference voltage V_(ref). This may provide the lineartransfer characteristic and no dependence from resistive strip absoluteresistance value.

It should be noted that the description above may be extended for twodimension operation by increasing the number of parallel operationchannels (e.g., using two or more sigma-delta modulators, operating inparallel) or by sensing the two dimensional panel as a set of onedimension sliders. In this embodiment, the two panel edges effectivelyare a one-dimensional slider with A,B terminals. The left two edgeconnectors can be left non-connected or be connected to the modulatorreference voltage source, forming the different measurement schemes.

For example, a 4-wire ITO panel configuration may include fourmodulators with four separate digital filters, which are used at sametime. If two sigma-delta modulators are running in parallel, slidertouch position may be determined in one single stage, eliminating theneed for two separate stages, Stage 1 and Stage 2. Running severalmodulators in parallel may reduce scan time and improve SNR. Onedisadvantage may be an increase in cost of hardware resources.Alternatively, other configurations are possible.

FIG. 11 illustrates one embodiment of a two-dimensional, four-wireresistive touch panel. In this mode, the two coordinates can beevaluated by doing the several measurements in series using onesigma-delta modulator. The eight conversions may be used forhigh-accuracy position calculation and touch capacitance compensation.If two sigma-delta modulators running in parallel modulators are used,only four measurements are made. Running four sigma-delta modulatorsallows the touch panel position to be made using a single conversion.

The embodiments described herein may be implemented in a matrix-scanningdevice, such as a keyboard.

FIG. 12A illustrates one embodiment of a matrix-scanning device. Matrixscanning, using the embodiments described herein, may reduce the numberof connection lines for a keyboard, and may be useful for multi-buttonscanning applications, such as PC keyboards, or the like. The scanningmatrix 1200 includes the N drive lines 1201 and M sense lines 1202, andeach capacitive key is located at drive/sense line intersection. Itshould be noted that multiple implementations are possible for formingthe drive signals and sensing strategy depending on the availablehardware resources. In one embodiment, the drive signal is applied tothe N drive lines 1201 in series or sequentially using a clock source1203, and the M sensing lines 1202 are sensed in parallel.Alternatively, other excitation signal sources may be used. In thisembodiment, there is M sigma-delta modulators running in parallel.However, alternatively, a multiplexer may be used to reduce the numberof sigma-delta modulators. Alternatively, other number of sigma-deltamodulators may be used. In another embodiment, the drive signals areapplied to each drive line 1201 in series, and each sense line 1201 isscanned in series as well. In this embodiment, there may be onesigma-delta modulator. This embodiment includes taking N*M conversionsto scan the complete matrix. Alternatively, two or more sigma-deltamodulators may be used.

In one embodiment, the DC voltage source (Vdc) is used for parasiticcapacitance compensation. The value of Vdc may be adjusted such thatthere is minimal or no modulator current when there is not presence ofthe conductive object (e.g., no touch is being detected). In anotherembodiment, the DC source voltage can be selected to be equal to zero,or alternatively, equal to V_(dd) (e.g., bottom lead of the third switchSw₃ is connected to ground or V_(dd)). Alternatively, the DC sourcevoltage may be equal to the reference voltage V_(ref). In one exemplaryembodiment, the switch can be connected to the V_(dd) or V_(ss) lines ofthe PSoC™ processing device, manufactured by Cypress SemiconductorCorporation, San Jose, Calif. In another embodiment, DC voltage sourceto the first switch Sw₁, which may allow offset compensation in acircuit that includes two analog buses, such as the PSoC™ processingdevice, manufactured by Cypress Semiconductor Corporation, San Jose,Calif.

FIG. 12B illustrates another matrix scanning device 1250 (e.g., keyboardmatrix) that does not use the excitation signal source. The matrix isformed by column and row sense lines 1204 and 1205. The touched key isdetermined as intersection detected row and column touched sensors.

In another embodiment, an insulated sensor element and a sigma-deltamodulator may be used a liquid level metering device. The insulatedsensor element may be placed inside a tank with liquid. The sensorcapacitance may be configured to increase linearly in response to anincrease in level of the liquid in the tank.

As described above, the embodiments described herein describe acapacitance-to-code converter that allows continuous type operation byproviding a continuous output bitstream that can be filtered by one ormore filters, (e.g., parallel multiple digital filters) to obtaindesired characteristics, such as resolution, sample rate, low-pass orhigh-pass filtering, or the like. The embodiments describe herein mayalso be configured to provide a direct capacitance-to-code conversionusing a sigma-delta modulator with linear transfer characteristic andfixed measurement time, for example, using a decimator, whose outputcode is directly proportional to the capacitance.

The embodiments described herein may have the advantage of keeping allbenefits of existing charge transfer/accumulation methods (especially inthe high immunity for RF/EMI noise signals), and may be configured foreasy implementation in existing devices from hardware and softwareperspectives, as well as in future devices.

Embodiments of the present invention, described herein, include variousoperations. These operations may be performed by hardware components,software, firmware, or a combination thereof. As used herein, the term“coupled to” may mean coupled directly or indirectly through one or moreintervening components. Any of the signals provided over various busesdescribed herein may be time multiplexed with other signals and providedover one or more common buses. Additionally, the interconnection betweencircuit components or blocks may be shown as buses or as single signallines. Each of the buses may alternatively be one or more single signallines and each of the single signal lines may alternatively be buses.

Certain embodiments may be implemented as a computer program productthat may include instructions stored on a machine-readable medium. Theseinstructions may be used to program a general-purpose or special-purposeprocessor to perform the described operations. A machine-readable mediumincludes any mechanism for storing or transmitting information in a form(e.g., software, processing application) readable by a machine (e.g., acomputer). The machine-readable medium may include, but is not limitedto, magnetic storage medium (e.g., floppy diskette); optical storagemedium (e.g., CD-ROM); magneto-optical storage medium; read-only memory(ROM); random-access memory (RAM); erasable programmable memory (e.g.,EPROM and EEPROM); flash memory; electrical, optical, acoustical, orother form of propagated signal (e.g., carrier waves, infrared signals,digital signals, etc.); or another type of medium suitable for storingelectronic instructions.

Additionally, some embodiments may be practiced in distributed computingenvironments where the machine-readable medium is stored on and/orexecuted by more than one computer system. In addition, the informationtransferred between computer systems may either be pulled or pushedacross the communication medium connecting the computer systems.

Although the operations of the method(s) herein are shown and describedin a particular order, the order of the operations of each method may bealtered so that certain operations may be performed in an inverse orderor so that certain operation may be performed, at least in part,concurrently with other operations. In another embodiment, instructionsor sub-operations of distinct operations may be in an intermittentand/or alternating manner.

In the foregoing specification, the invention has been described withreference to specific exemplary embodiments thereof. It will, however,be evident that various modifications and changes may be made theretowithout departing from the broader spirit and scope of the invention asset forth in the appended claims. The specification and drawings are,accordingly, to be regarded in an illustrative sense rather than arestrictive sense.

What is claimed is:
 1. A capacitance-to-code converter comprising: aninput selectively couplable to a first sensing electrode; an integratingcircuit to integrate a signal on the input; a first conversion circuitto convert the integrated signal to a first digital value, wherein thefirst digital value is representative of a self capacitance of the firstsensing electrode; and a second conversion circuit to convert theintegrated signal to a second digital value, wherein the second digitalvalue is representative of a mutual capacitance between the firstsensing electrode and a second sensing electrode.
 2. Thecapacitance-to-code converter of claim 1, wherein the signal is avoltage.
 3. The capacitance-to-code converter of claim 2, wherein thevoltage is applied to the first sensing electrode in a first phase of aswitched-capacitor operation.
 4. The capacitance-to-code converter ofclaim 1, wherein the signal is a current.
 5. The capacitance-to-codeconverter of claim 4, wherein the current is induced on the firstsensing electrode by a transmit signal on the second sensing electrode.6. The capacitance-to-code converter of claim 1, wherein the firstsensing electrode is substantially orthogonal to the second sensingelectrode.
 7. The capacitance-to-code converter of claim 1, wherein thefirst conversion circuit and the second conversion circuit share atleast one component.
 8. The capacitance-to-code converter of claim 1,wherein the first conversion circuit and the second conversion circuitoperate at a first time and a second time, respectively.
 9. Thecapacitance-to-code converter of claim 8, wherein the first conversioncircuit and the second conversion circuit comprise substantially thesame circuit elements, and wherein the circuit elements are configuredto convert a self capacitance and a mutual capacitance in a first modeand a second mode, respectively.
 10. A method comprising: receiving afirst signal on a first input coupled to a first sensing electrode;integrating the first signal to generate a first integrated signal;converting the first integrated signal to a first digital value, whereinthe first digital value is representative of a self capacitance of thefirst sensing electrode; and converting the first integrated signal to asecond digital value, wherein the second digital value is representativeof a mutual capacitance between the first sensing electrode and a secondsensing electrode coupled to a second input.
 11. The method of claim 10,further comprising: providing a second signal on the second input. 12.The method of claim 11, wherein the first signal received on the firstinput is a current induced by the second signal on the second input. 13.The method of claim 10, wherein the first signal is a voltage.
 14. Themethod of claim 10, wherein converting the first integrated signal tothe second digital value comprises: reconfiguring at least one componentof a conversion circuit for converting the first integrated signal tothe first digital value.
 15. A capacitance sensing device comprising: afirst capacitance sensing electrode; a second capacitance sensingelectrode; an integrating circuit coupled to the first capacitancesensing electrode; a first conversion circuit to convert an integratedsignal from the first capacitance sensing electrode to a first digitalvalue, wherein the first digital value is representative of a selfcapacitance of the first sensing electrode; and a second conversioncircuit to convert the integrated signal from the first capacitancesensing electrode to a second digital value, wherein the second digitalvalue is representative of a mutual capacitance between the firstcapacitance sensing electrode and the second capacitance sensingelectrode.
 16. The capacitance sensing device of claim 15, wherein thefirst capacitance sensing electrode is substantially orthogonal to thesecond capacitance sensing electrode.
 17. The capacitance sensing deviceof claim 15, wherein the first capacitance sensing electrode issubstantially adjacent to the second capacitance sensing electrode. 18.The capacitance sensing device of claim 15, wherein the first conversioncircuit and the second conversion circuit share at least one component.19. The capacitance sensing device of claim 15, wherein the firstconversion circuit and the second conversion circuit operate at a firsttime and a second time, respectively.
 20. The capacitance sensing deviceof claim 19, wherein the first conversion circuit and the secondconversion circuit comprise substantially the same circuit elements, andwherein the circuit elements are configured to convert a selfcapacitance and a mutual capacitance in a first mode and a second mode,respectively.